﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SisTransportes.Apresentacao.WebForm.Setting;

namespace SisTransportes.Apresentacao.WebForm
{
    public partial class Login : PageApp
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {

                if (!string.IsNullOrEmpty(Config.Configuracao.Logo))
                {
                    Display.LogoHeader(imgLogo);
                    imgLogo.Visible = true;
                    titulo.Visible = false;
                }
                else
                {
                    titulo.Visible = true;
                    imgLogo.Visible = false;
                }

                Page.Title = Config.Configuracao.TituloApp + " | " + Config.Configuracao.SlogaApp;
            }
            catch(Exception ex)
            {
                Response.Write("error: " + ex.Message);
            }
        }
    }
}